<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
        <meta name="renderer" content="webkit" />
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1, minimum-scale=1">
        <meta name="baidu_ssp_verify" content="0cae7ab76b4cab09ff3bc6b6f3a32dd5">
        <%= render_page_title %>
        <%= render_meta_description %>
        <%= render_meta_keywords %>
        <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
        <% if content_for? :csrf_tags %>
            <%= yield :csrf_tags %>
        <% else %>
            <%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
            <%= csrf_meta_tags %>
        <% end %>
        <link rel="shortcut icon" type="image/x-icon" href="<%= image_path('favicon.ico') %>"/>
        <meta property="og:image" content="<%= image_path('mobile/mobile-min-logo.png') %>">
    </head>
    <body>
        <% if mobile? %>
          <div style="display: none;">
            <img src="<%= image_path('mobile/mobile-min-logo.png') %>" alt="">
          </div>
          <div id="app">
              <% if content_for? :mobile_menu %>
              <%= yield :mobile_menu %>
              <% else %>
              <%= render partial: 'mobile_menu' %>
              <% end %>
              <%= render partial: 'mobile_suspend_button' %>
              <% if content_for? :mobile_head %>
              <%= yield :mobile_head %>
              <% else %>
              <%= render partial: 'mobile_head' %>
              <% end %>
              <%= yield %>
          </div>
        <% else %>
            <% if content_for? :main_div %>
            <%= yield :main_div %>
            <% else %>
            <div id="app">
            <% end %>
                <% if content_for? :header %>
                <%= yield :header %>
                <% else %>
                <%= render partial: 'top' %>

                <!-- switch user for admin -->
                <%= switch_user_select %>

                <%= render partial: 'header' %>
                <%= render partial: 'menu_carousel' %>
                <% end %>

                <% if need_bg? %>
                <div>
                    <div>
                <% else %>
                <div class="bg-gray">
                  <div class="container layout-container">
                <% end %>
                        <% if content_for? :breadcrumb %>
                        <%= yield :breadcrumb %>
                        <% end %>

                        <% if content_for? :left_nav %>
                        <%= yield :left_nav %>
                        <% end %>

                        <%= yield %>
                    </div>
                </div>

                <% if content_for? :footer %>
                <%= yield :footer %>
                <% else %>
                <%= render partial: 'footer' %>
                <% end %>

                <%= render partial: 'layouts/hidden' %>
            </div>
        <% end %>

        <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
        <%= webpack_manifest_script %>
        <%= webpack_bundle_tag get_particular_js %>
        <script language="javascript" src="http://dkb.duokebo.com/js/detector.aspx?siteid=685256"></script>
        <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1263923629'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1263923629%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
    </body>
</html>
